package com.westar.base.model;

import com.westar.base.annotation.DefaultFiled;
import com.westar.base.annotation.Filed;
import com.westar.base.annotation.Identity;
import com.westar.base.annotation.Table;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;

import java.io.Serializable;
import java.util.Date;

/**
 * 办件状态回传异常记录
 *
 * @author Administrator
 * @ClassName： AffairMsg
 * @Descrpition： 办件状态回传异常记录
 */
@Table
@JsonInclude(Include.NON_NULL)
public class AffairMsg implements Serializable {

    /**
     * id主键
     */
    @Identity
    private Integer id;

    /**
     * 记录创建时间
     */
    @DefaultFiled
    private String recordCreateTime;

    /**
     * 办件状态
     */
    @Filed
    private Integer state;

    /**
     * 办件编号
     */
    @Filed
    private String affairCode;

    /**
     * 下一次自动办件时间
     */
    @Filed
    private String autoHandleTime;

    /**
     * 信息提示
     */
    @Filed
    private String msg;

    /**
     * 回传次数
     */
    @Filed
    private Integer times;

    /**
     * 回传异常描述
     */
    @Filed
    private String errorMsg;

    /**
     * 回传状态
     */
    @Filed
    private Integer httpState;

    /****************以上主要为系统表字段********************/

    /****************以上为自己添加字段********************/

    /**
     * id主键
     *
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * id主键
     *
     * @return Integer
     */
    public Integer getId() {
        return id;
    }

    /**
     * 记录创建时间
     *
     * @param recordCreateTime
     */
    public void setRecordCreateTime(String recordCreateTime) {
        this.recordCreateTime = recordCreateTime;
    }

    /**
     * 记录创建时间
     *
     * @return String
     */
    public String getRecordCreateTime() {
        return recordCreateTime;
    }

    /**
     * 办件状态
     *
     * @param state
     */
    public void setState(Integer state) {
        this.state = state;
    }

    /**
     * 办件状态
     *
     * @return Integer
     */
    public Integer getState() {
        return state;
    }

    /**
     * 办件编号
     *
     * @param affairCode
     */
    public void setAffairCode(String affairCode) {
        this.affairCode = affairCode;
    }

    /**
     * 办件编号
     *
     * @return String
     */
    public String getAffairCode() {
        return affairCode;
    }

    /**
     * 下一次自动办件时间
     *
     * @param autoHandleTime
     */
    public void setAutoHandleTime(String autoHandleTime) {
        this.autoHandleTime = autoHandleTime;
    }

    /**
     * 下一次自动办件时间
     *
     * @return String
     */
    public String getAutoHandleTime() {
        return autoHandleTime;
    }

    /**
     * 信息提示
     *
     * @param msg
     */
    public void setMsg(String msg) {
        this.msg = msg;
    }

    /**
     * 信息提示
     *
     * @return String
     */
    public String getMsg() {
        return msg;
    }

    /**
     * 回传次数
     *
     * @param times
     */
    public void setTimes(Integer times) {
        this.times = times;
    }

    /**
     * 回传次数
     *
     * @return Integer
     */
    public Integer getTimes() {
        return times;
    }

    /**
     * 回传异常描述
     *
     * @param errorMsg
     */
    public void setErrorMsg(String errorMsg) {
        this.errorMsg = errorMsg;
    }

    /**
     * 回传异常描述
     *
     * @return String
     */
    public String getErrorMsg() {
        return errorMsg;
    }

    /**
     * 回传状态
     *
     * @param httpState
     */
    public void setHttpState(Integer httpState) {
        this.httpState = httpState;
    }

    /**
     * 回传状态
     *
     * @return Integer
     */
    public Integer getHttpState() {
        return httpState;
    }
}
